import request from "@/utils/request";

// 获取帖子列表
export function getPostListApi(params: any) {
  return request({
    url: "/post/get_post_list",
    method: "get",
    params,
  });
}

// 获取帖子详情
export function getPostApi(id: any) {
  return request({
    url: `/post/get_post`,
    method: "get",
    params: {
      id: id,
    },
  });
}
